core: Fix case where we hardlinked successfully but thought we didn't
authorColin Walters <walters@verbum.org>
Sat, 13 Oct 2012 22:41:47 +0000 (18:41 -0400)
committerColin Walters <walters@verbum.org>
Sat, 13 Oct 2012 22:41:47 +0000 (18:41 -0400)
We need to return hardlink_supported even if we had to do an unlink
first.

src/libostree/ostree-repo.c

index 440acbe432d38e7705e51ab5efc3d9ab9e42b09d..020a595507bcc0ac33fd405689655c72fabba071 100644 (file)
@@ -3235,6 +3235,7 @@ checkout_file_hardlink (OstreeRepo                  *self,
           ot_util_set_error_from_errno (error, errno);
           goto out;
         }
+      ret_was_supported = TRUE;
     }
   else
     {